package com.weidong.mybbs.service;

import com.weidong.mybbs.entity.SysUser;
import com.weidong.mybbs.mapper.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserService {

    @Autowired
    private SysUserMapper sysUserMapper;

    public int checkLoginNameUnique(String name){
        return sysUserMapper.checkLoginNameUnique(name);
    }

    public SysUser findByName(String loginName){
        return sysUserMapper.findByName(loginName);
    }
}
